﻿using UnityEditor;
using UnityEngine;
using Yoozoo.Gameplay.Liberty.AI;

namespace Yoozoo.Gameplay.Liberty.VehicleController
{
    [CustomEditor(typeof(VehicleSetting))]
    public class VehicleSettingEditor : UnityEditor.Editor
    {
        public override void OnInspectorGUI()
        {
            VehicleSetting vs = target as VehicleSetting;
            
            if (GUILayout.Button("玩家相机注视"))
            {
                vs.playerCamera = LibertyAIUtils.PlayerController.inputCamera;
                vs.Set2InputCamera();
            }
            base.OnInspectorGUI();
        }
    }
}